#include <stdio.h>
#include <stdlib.h>

int search(int *, int, int);

int main()
{
	int list [5] = {12,32,45,63,23};
	int num = -1;
	num = search(list, 63, 5);
	printf("%d\n", num);
	return 0;
}

int search(int * list, int target, int n)
{
	int no = 0;
	int i = 0;
	for(i = 0; i < n; i++)
	{
		if(list[i] == target)return i;
	}
	return -1;
}
